package com.foreverwin.mes.so.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Syngna
 * @since 2020-02-04
 */
@TableName("Z_RECIPE_PARAM")
public class RecipeParam extends Model<RecipeParam> {

    private static final long serialVersionUID = 1L;

   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
   @TableField("RECIPE_BO")
   private String recipeBo;
   @TableField("PARAM_NAME")
   private String paramName;
   @TableField("PARAM_DESC")
   private String paramDesc;
   @TableField("PARAM_GROUP")
   private String paramGroup;
   @TableField("PARAM_VALUE")
   private String paramValue;
   @TableField("PARAM_TIME_FROM")
   private String paramTimeFrom;
   @TableField("PARAM_TIME_TO")
   private String paramTimeTo;
   @TableField("PARAM_UNIT")
   private String paramUnit;
   @TableField("PARAM_MIN")
   private String paramMin;
   @TableField("PARAM_MAX")
   private String paramMax;
   @TableField("PARAM_LENGTH")
   private String paramLength;
   @TableField("PARAM_TYPE")
   private String paramType;
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;
   @TableField("CREATOR")
   private String creator;
   @TableField("UPDATER")
   private String updater;

   @TableField(exist = false)
   private String recipe;

   @TableField(exist = false)
   private String recipeRevision;

   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getRecipeBo() {
      return recipeBo;
   }

   public void setRecipeBo(String recipeBo) {
      this.recipeBo = recipeBo;
   }

   public String getParamName() {
      return paramName;
   }

   public void setParamName(String paramName) {
      this.paramName = paramName;
   }

   public String getParamDesc() {
      return paramDesc;
   }

   public void setParamDesc(String paramDesc) {
      this.paramDesc = paramDesc;
   }

   public String getParamGroup() {
      return paramGroup;
   }

   public void setParamGroup(String paramGroup) {
      this.paramGroup = paramGroup;
   }

   public String getParamValue() {
      return paramValue;
   }

   public void setParamValue(String paramValue) {
      this.paramValue = paramValue;
   }

   public String getParamTimeFrom() {
      return paramTimeFrom;
   }

   public void setParamTimeFrom(String paramTimeFrom) {
      this.paramTimeFrom = paramTimeFrom;
   }

   public String getParamTimeTo() {
      return paramTimeTo;
   }

   public void setParamTimeTo(String paramTimeTo) {
      this.paramTimeTo = paramTimeTo;
   }

   public String getParamUnit() {
      return paramUnit;
   }

   public void setParamUnit(String paramUnit) {
      this.paramUnit = paramUnit;
   }

   public String getParamMin() {
      return paramMin;
   }

   public void setParamMin(String paramMin) {
      this.paramMin = paramMin;
   }

   public String getParamMax() {
      return paramMax;
   }

   public void setParamMax(String paramMax) {
      this.paramMax = paramMax;
   }

   public String getParamLength() {
      return paramLength;
   }

   public void setParamLength(String paramLength) {
      this.paramLength = paramLength;
   }

   public String getParamType() {
      return paramType;
   }

   public void setParamType(String paramType) {
      this.paramType = paramType;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public String getCreator() {
      return creator;
   }

   public void setCreator(String creator) {
      this.creator = creator;
   }

   public String getUpdater() {
      return updater;
   }

   public void setUpdater(String updater) {
      this.updater = updater;
   }

   public String getRecipe() {
      return recipe;
   }

   public void setRecipe(String recipe) {
      this.recipe = recipe;
   }

   public String getRecipeRevision() {
      return recipeRevision;
   }

   public void setRecipeRevision(String recipeRevision) {
      this.recipeRevision = recipeRevision;
   }

   public static final String HANDLE = "HANDLE";

   public static final String RECIPE_BO = "RECIPE_BO";

   public static final String PARAM_NAME = "PARAM_NAME";

   public static final String PARAM_DESC = "PARAM_DESC";

   public static final String PARAM_GROUP = "PARAM_GROUP";

   public static final String PARAM_VALUE = "PARAM_VALUE";

   public static final String PARAM_TIME_FROM = "PARAM_TIME_FROM";

   public static final String PARAM_TIME_TO = "PARAM_TIME_TO";

   public static final String PARAM_UNIT = "PARAM_UNIT";

   public static final String PARAM_MIN = "PARAM_MIN";

   public static final String PARAM_MAX = "PARAM_MAX";

   public static final String PARAM_LENGTH = "PARAM_LENGTH";

   public static final String PARAM_TYPE = "PARAM_TYPE";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   public static final String CREATOR = "CREATOR";

   public static final String UPDATEER = "UPDATEER";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "RecipeParam{" +
         "handle = " + handle +
         ", recipeBo = " + recipeBo +
         ", paramName = " + paramName +
         ", paramDesc = " + paramDesc +
         ", paramGroup = " + paramGroup +
         ", paramValue = " + paramValue +
         ", paramTimeFrom = " + paramTimeFrom +
         ", paramTimeTo = " + paramTimeTo +
         ", paramUnit = " + paramUnit +
         ", paramMin = " + paramMin +
         ", paramMax = " + paramMax +
         ", paramLength = " + paramLength +
         ", paramType = " + paramType +
         ", createdDateTime = " + createdDateTime +
         ", modifiedDateTime = " + modifiedDateTime +
         ", creator = " + creator +
         ", updater = " + updater +
         "}";
   }
}